<ion-header>
  <ion-navbar>
    <ion-title>注册</ion-title>
  </ion-navbar>
</ion-header>
<ion-content>
  <div class="jl_line"></div>
  <div class="w12">
    <div class="w04 pl5 pr5 " style="float: right">
      <div class="w12 bgcolor_white item pl15 pr25 pt25 pb25">
        <image-picker [max]="1" [(ngModel)]="picList" [upload]="true" [mode]="'all'" [isFileServer]="true"></image-picker>
      </div>
    </div>
    <ion-list class="w08">
      <ion-item>
        <ion-label style="font-size: 16px;color: #000000;font-weight: bold;"> 姓 &nbsp;名:</ion-label>
        <ion-input placeholder="请输入姓名" disabled="{{read}}" type="string" [(ngModel)]="name"
                   (input)="name=$event.target.value" clearInput></ion-input>
      </ion-item>
      <ion-item>
        <ion-label style="font-size: 16px;color: #000000;font-weight: bold;"> 电话:</ion-label>
        <ion-input placeholder="请输入手机号" type="number" (input)="tel=$event.target.value" clearInput
                   (ionBlur)="blurInput()"></ion-input>
      </ion-item>
      <ion-item>
        <ion-label style="color: #000000;font-weight: bold;"> 人员类型:</ion-label>
        <ion-select multiple="true" [(ngModel)]="RYLX" disabled="{{read}}" okText="确认" cancelText="取消">
          <ion-option value="1">送货</ion-option>
          <ion-option value="2">搬运</ion-option>
          <ion-option value="3">服务</ion-option>
        </ion-select>
      </ion-item>
    </ion-list>
    <ion-list>
      <ion-item>
        <ion-input placeholder="保险公司" [(ngModel)]="bxgs" (input)="bxgs=$event.target.value" clearInput></ion-input>
      </ion-item>
      <ion-item>
        <ion-input placeholder="保险单号" [(ngModel)]="bxdh" (input)="bxdh=$event.target.value" clearInput></ion-input>
      </ion-item>
      <ion-item>
        <ion-datetime placeholder="保险开始时间" displayFormat="YYYY-MM-DD" cancelText="取消" doneText="确认"
                      [(ngModel)]="bx_start" max="{{max}}" min="{{min}}">
        </ion-datetime>
      </ion-item>
      <ion-item>
        <ion-datetime placeholder="保险结束时间" displayFormat="YYYY-MM-DD" cancelText="取消" doneText="确认"
                      [(ngModel)]="bx_end" max="{{max}}" min="{{min}}">
        </ion-datetime>
      </ion-item>
    </ion-list>
    <ion-list>
      <ion-item>
        <ion-label style="color: #000000;font-weight: bold;"> 身份证号:</ion-label>
        <ion-input placeholder="请输入身份证号" type="string" disabled="{{read}}" [(ngModel)]="IDnumber"
                   (input)="IDnumber=$event.target.value" clearInput></ion-input>
      </ion-item>
      <ion-item>
        <div style="color: #000000;font-weight: bold;" (click)='chooseAddress()'>
          <div class="jl_form_item bor_bottom">
            <span class="w04">地址</span>
            <span class="w08 tr">{{address2 ? address2 : '请选择' }}</span>
            <i class="fa fa-angle-right"></i>
          </div>
        </div>
        <div style="color: #000000;font-weight: bold;">
          <div class="jl_input_item pr15">
            <textarea class="w12" placeholder="请输入详细地址" disabled="{{read}}" [(ngModel)]="xxdz"></textarea>
          </div>
        </div>
      </ion-item>
      <ion-item *ngIf="bz!=null">
        <div style="font-weight: bold;">
          <span>备注：</span>
          <div class="jl_input_item pr15">
            <textarea class="bgcolor_white w12" [(ngModel)]="bz" disabled="false"></textarea>
          </div>
        </div>
      </ion-item>
    </ion-list>
    <div>
      <span class="font_red font_size_super">{{tip}}</span>
    </div>
  </div>
</ion-content>

<ion-footer>
  <div>
    <button ion-button color="primary" block (click)="isnull()">确认</button>
  </div>
</ion-footer>
